package com.itfreer.special.dictionary;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;

/**
 * 定义数据类型本地字典
 */
@Component
public class IndexDataDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "IndexDataDictionary";
	}
	
	@Override
	protected List<DictionaryEntity> getDictionarys() {
		List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
		
		DictionaryEntity item = new DictionaryEntity();
		item.setId("1");
		item.setCode("1");
		item.setDisplay("测试政区1");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("2");
		item.setCode("2");
		item.setDisplay("测试政区2");
		item.setOrder(2);
		list.add(item);
		
		return list;
	}
}
